import { Application } from 'egg';
/**
 * 用户相关的路由
 */
export default (app: Application) => {
  // const { auth } = app.middleware;
  const {
    // auditLog: { middleware: log },
  } = app;

  return {
    'shipper.list': {
      method: 'GET',
      path: '/api/shipper/list',
      options: {
        tags: ['shipper'],
        description: '查询所有快递公司',
        handler: app.controller.shipper.list,
        // middlewares: [jwt, auth('shipper.list')],
      },
    }
  }
};
